from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),
        
    (r'^css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.CSS_PATH}),  
    (r'^js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.JS_PATH}), 
    (r'^img/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.IMG_PATH}), 
    
    (r'^captcha/$', 'miles8.contrib.views.captcha'),
    
    (r'^/?$', 'miles8.blog.views.index'),  
    (r'^blog/', include('miles8.blog.urls')),    
    (r'^xmlrpc/$', 'miles8.contrib.django_xmlrpc.views.handle_xmlrpc'),    
        
    #(r'^gateway/', 'PyNews.news.amfgateway.echoGateway'),
)
